'use strict'
const process = require('child_process')
const JarRun = {
  aes(key, str) {
    const { execSync } = process
    const exec_path = 'java -jar AES.jar ' + key + ' ' + str
    const res = execSync(exec_path).toString().trim().replace('_','/')
    return res
  }
}
module.exports = JarRun